// register
import register from '../../../scripts/angular/register.js';

// routers
import CompanyRouter from '../routers/company.routers.js';

// services
import CompanyService from '../services/companyService.js';

// controllers
import DashboardController from '../controllers/dashboard.controller.js';
import CompanyListController from '../controllers/companylist.controller.js';
import CompanyCreateController from '../controllers/companycreate.controller.js';
import CompanyEditController from '../controllers/companyedit.controller.js';
import CompanyViewController from '../controllers/companyview.controller.js';


angular
    .module('company.module', [
        'ngAnimate', 
        'ngSanitize', 
        'ui.router',
        'ngMessages',  
        'chieffancypants.loadingBar', 
        'ngDialog', 
        'mgcrea.ngStrap', 
        'oc.lazyLoad',
        'ng-sortable'
    ])
    .config(CompanyRouter)
    .controller('DashboardController', DashboardController)
    .controller('CompanyListController', CompanyListController)
    .controller('CompanyCreateController', CompanyCreateController)
    .controller('CompanyEditController', CompanyEditController)
    .controller('CompanyViewController', CompanyViewController);


register('company.module')
    .factory('CompanyService', CompanyService);